import { DatePicker, Radio, Space } from 'antd';
import dayjs from "dayjs";
const { RangePicker } = DatePicker;
export default function  Test(){

  const changeTime=(_,values)=>{
      console.log(_);
      console.log(values);
      const startTime = dayjs(values[0]).format('YYYY-MM-DD');
      const endTime = dayjs(values[1]).add(1,'day').format('YYYY-MM-DD');
      console.log(startTime);
      console.log(endTime);
  }



    return(
        <div>
            <h1>测试页</h1>

            <RangePicker onChange={changeTime} />


        </div>

    )

}